// import { blue } from 'chalk';
// import { printMsg } from '../utils/common';
import { createProjectFile, initFeature, selectFeature } from '../utils/create';

export async function createProject (pName: string) {
  // 1. 创建项目目录
  createProjectFile(pName);
  // 2. 收集用户创建项目的功能
  const { featureList, projectType } = await selectFeature(); // 结果是一个数组
  const { ptype } = projectType;
  const { feature } = featureList;
  // console.log(feature, '123345');
  // 3. 实现功能
  initFeature(pName, ptype, feature);
  // 4. 收尾 打印一些东西
}
